#include <jni.h>
#include <string>
#include "my_signal.cpp"
#include "test.cpp"

extern "C" JNIEXPORT jstring JNICALL
Java_com_cdg_godtools_MainActivity_stringFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    std::string hello = "Hello from C++";
    return env->NewStringUTF(hello.c_str());
}extern "C"
JNIEXPORT void JNICALL
Java_com_cdg_godtools_MainActivity_sendSignalQuiet(JNIEnv *env, jclass clazz, jint pid,
                                                   jint signal) {
    // TODO: implement sendSignalQuiet()
    send_signal(pid,signal);
}extern "C"
JNIEXPORT void JNICALL
Java_com_cdg_godtools_MainActivity_doNativeTest(JNIEnv *env, jclass clazz) {
    // TODO: implement doNativeTest()
    do_test();

}extern "C"
JNIEXPORT void JNICALL
Java_com_cdg_godtools_MainActivity_registSignalNative(JNIEnv *env, jclass clazz) {
    // TODO: implement registSignalNative()
    regist_signal();
}extern "C"
JNIEXPORT void JNICALL
Java_com_cdg_godtools_MainActivity_unRegistSignalNative(JNIEnv *env, jclass clazz) {
    // TODO: implement unRegistSignalNative()
}extern "C"